<?php


namespace app\admin\controller\base;


use app\admin\service\base\PaperSubjectService as QuestionService;
use app\BaseController;
use think\response\Json;

class PaperSubject extends BaseController
{
    /**
     * 列表
     * @return Json
     */
    public function index(QuestionService $questionService):Json
    {
        $params = request()->param();
        return $questionService->index($params);
    }

    /**
     * 详情
     * @param QuestionService $questionService
     * @return Json
     */
    public function read(QuestionService $questionService):Json
    {
        $params = request()->param();
        return $questionService->read($params);
    }

    /**
     * 创建
     * @return Json
     */
    public function save(QuestionService $questionService):Json
    {
        $params = request()->param();
        return $questionService->save($params);
    }

    /**
     * 更新
     * @return Json
     */
    public function update(QuestionService $questionService):Json
    {
        $params = request()->param();
        return $questionService->update($params);
    }


    /**
     * 删除
     * @return Json
     */
    public function delete(QuestionService $questionService):Json
    {
        $params = request()->param();
        return $questionService->delete($params);
    }
}